package com.gitee.magic.jdbc.persistence.source.jdbc.script.converter;

import com.gitee.magic.jdbc.persistence.source.jdbc.script.def.BaseColumnFieldScriptDef;

/**
 * 固定长度，最多65535个字符
 * @author start
 *
 */
public class FieldVarChar extends BaseColumnFieldScriptDef {
	
	@Override
	public String buildScripts(int length, int dp) {
		return String.valueOf(getDataType())+"("+length+")";
	}

	@Override
	public String getDataType() {
		return "VARCHAR";
	}

	@Override
	public int getLength() {
		return 255;
	}
	
}